#!/bin/bash

set -o errexit
set -o pipefail
export LC_ALL=C

GENOMES_NUM=$1
RESULTS_DIR=$2

NODES_NUM=20
SYNC_DIR="/home/mixagol/.sync_distmi_workers"

mkdir -p $SYNC_DIR
rm -f $SYNC_DIR/*
mkdir -p $RESULTS_DIR

mpirun -q quad -np $NODES_NUM ~/runner ~/work/gene-class/3_normed_matrix/run_distmi_worker.sh $NODES_NUM $SYNC_DIR $GENOMES_NUM $RESULTS_DIR

